3. Creating the Client Application
The next step is to
add the client application. In Solution Explorer right click the
solution and select Add->New Project. In the Add New Project Dialog,
select the Cloud project types then select Windows Azure Cloud Service,
providing a name of TechBioSite, as shown in Figure 3.
Click OK on the Add New Project dialog.
Next, in the New Cloud
Service Project dialog, select ASP.NET Web Role to add it to the Cloud
Service Solution pane, leaving the default name of WebRole1, then click
OK.
Next, right click the Web
Role project in Solution Explorer and select Add Service Reference from
the context menu. This will bring up the Add Service Reference dialog
shown in Figure 4.
In the Add Service
Reference click the Discover button, which will interrogate your
solution for existing services and display them in the Services list. As
you can see from Figure 4,
the discovery function did in fact find your TechBioDataServices
service in your Web application project. The discovery also provides
your local URI for the service as well as the Entities that are exposed
by the service. Give the service a namespace name of
TechBioServiceReference and click OK.
At this point your Solution
Explorer will have your TechBioSite Cloud Service project, your
WCFDataServiceWebApp project and your web role. You should see those
items as they're shown in Figure 5.